Skip to content

Conversation

@yschimke
Copy link
Contributor

@yschimke yschimke commented Nov 7, 2025

A port of the Glance ISS Map Widget.

Adds rotation, eventually plot the trajectory of the ISS on the Map. And occasionally move the map to center it again.
image

Build up something before exposing as a widget.
@yschimke yschimke changed the title Previewable remote compose card Previewable Remote Compose card Nov 7, 2025
@yschimke yschimke changed the title Previewable Remote Compose card Remote Compose ISS Map Widget Nov 8, 2025
try {
val position = peopleInSpaceApi.fetchISSPosition().iss_position
emit(position)
if (currentCoroutineContext().isActive) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

were you seeing some issue with cancellation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, catching Exception seemed to mean it was calling emit() after having failed previously with a cancellation.

Emissions from 'catch' blocks are prohibited in order to avoid unspecified behaviour, 'Flow.catch' operator can be used instead.
  For a more detailed explanation, please refer to Flow documentation., but then emission attempt of value 'IssPosition(latitude=40.6431, longitude=128.8029)' has been detected.
  
  2025-11-08 11:53:39.060 13868-13868 PeopleInSpaceRepository dev.johnoreilly.peopleinspace        W  Exception during pollISSPosition: java.lang.IllegalStateException:             Flow exception transparency is violated:
                                                                                                                    Previous 'emit' call has thrown exception java.lang.IllegalStateException:             Flow exception transparency is violated:
``

@joreilly joreilly merged commit 848f5ad into joreilly:main Nov 8, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants